package com.tqyan.model.controller.response;

import lombok.Data;

import java.io.Serializable;

/**
 * @description OpenAI聊天响应
 * <p>
 * {
 *   "id": "chatcmpl-123",
 *   "object": "chat.completion",
 *   "created": 1677652288,
 *   "choices": [{
 *     "index": 0,
 *     "message": {
 *       "role": "assistant",
 *       "content": "\n\nHello there, how may I assist you today?",
 *     },
 *     "finish_reason": "stop"
 *   }],
 *   "usage": {
 *     "prompt_tokens": 9,
 *     "completion_tokens": 12,
 *     "total_tokens": 21
 *   }
 * }
 * </p>
 *
 * @author 陈晨
 * @date 2023/4/10 16:55
 */
@Data
public class OpenAIChatUsageResp implements Serializable {
    private static final long serialVersionUID = 3719040706840819005L;

    /** 输入 */
    private Integer prompt_tokens;
    /** 输出 */
    private Integer completion_tokens;
    /** 总计 */
    private Integer total_tokens;

}


